Conversation
- add new `stemming` module with dictionary management functionality - add `StemmingDictionaries` class for crud operations on dictionaries - add corresponding types and tests for stemming operations - update `Client` class to expose stemming functionality
- Check for existence of keys and assert their types, instead of checking for their values
kishorenc
approved these changes
Feb 19, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces updates to the Python client to keep it up to date with the upcoming
v28release.Stemming Dictionary Management:
src/typesense/client.py: AddedStemmingclass for managing stemming dictionary operations. Updated theClientclass to include an instance ofStemming.src/typesense/stemming.py: Introduced a new module for managing stemming dictionaries, including creating, updating, and retrieving them.src/typesense/stemming_dictionaries.py: Added a new class for interacting with the stemming dictionaries endpoint of the Typesense API.src/typesense/stemming_dictionary.py: Added a new class for managing individual stemming dictionaries.Operations Class Fixes:
src/typesense/operations.py: Fixed a typo in thehealth_pathattribute and added support for schema changes operations.Schema Updates:
src/typesense/types/collection.py: UpdatedCollectionFieldSchemato includesymbols_to_indexandtoken_separatorsattributes. Added support forgeopolygonfield type.src/typesense/types/document.py: Added new attributes toFilterParameters,MultiSearchParameters, andDeleteQueryParameters.src/typesense/types/multi_search.py: Addedunionattribute toMultiSearchRequestSchema.Configuration Changes:
setup.cfg: Updated the ignore rules and added per-file ignores forstemming_dictionaries.py.